﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/Site.Master" AutoEventWireup="true" CodeBehind="StaffManagement.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.StaffManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style7 {
            color: #CCCCCC;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="wrapper">
        <div id="content">
            <h2>Staff Management</h2>
            <asp:LinkButton runat="server" ID="addStafflbtn" OnClick="addStafflbtn_Click">Add Staff</asp:LinkButton>
            <asp:GridView ID="GridViewS" runat="server" AutoGenerateColumns="False">
                <EmptyDataTemplate>
                    <p>
                        You are noob.
                    </p>
                </EmptyDataTemplate>
                <Columns>
                    <asp:BoundField HeaderText="Staff ID" DataField="staffID" />
                    <asp:BoundField HeaderText="Last Name" DataField="staffLastName" />
                    <asp:BoundField HeaderText="First Name" DataField="staffFirstName" />
                    <asp:BoundField HeaderText="Date Of Birth" DataField="DateOfBirth" />
                    <asp:BoundField HeaderText="Bank Account Number" DataField="bankAccNum" />
                    <asp:BoundField HeaderText="Home Address" DataField="homeAddress" />
                    <asp:BoundField HeaderText="Contact Number" DataField="phoneNum" />
                    <asp:BoundField HeaderText="Duties Type" DataField="dutiesName" />
                    <asp:TemplateField HeaderText="Remove">
                        <ItemTemplate>
                            <asp:LinkButton ID="DeleteButton" runat="server" OnClick="DeleteButton_Click" CommandArgument='<%# Eval("staffID") %>' Text="Delete" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Edit">
                        <ItemTemplate>
                            <asp:LinkButton ID="UpdateButton" runat="server" OnClick="UpdateButton_Click" CommandArgument='<%# Eval("staffID") + ";" + Eval("staffImage") + ";" + Eval("staffLastName") + ";" + Eval("staffFirstName") + ";" + Eval("DateOfBirth") + ";" + Eval("bankAccNum") + ";" + Eval("homeAddress") + ";" + Eval("phoneNum") + ";" + Eval("dutiesName") %>' Text="Update" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div id="left">
            <h3>Welcome to Staff Management Section!</h3>
            <p class="auto-style7">Please select one of the options if required!</p>
            <p><asp:LinkButton runat="server" ID="lsbtn" OnClick="lsbtn_Click" Text="Assign Housekeeping Schedule"></asp:LinkButton></p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>
                &nbsp;<asp:Button ID="btnback" runat="server" Height="35px" Text="Back To Admin Page" Width="144px" OnClick="btnback_Click" />
            </p>
        </div>

        <div class="clear"></div>
    </div>
</asp:Content>
